#ifndef MPI_SAMPLE_CAP_H
#define MPI_SAMPLE_CAP_H

#include "mpi_lib.h"
#include "sample_sys.h"
#include "mdi_common.h"
#include "lcd_common.h"
#include "mpi_version.h"

#ifdef  __cplusplus
extern "C"
{
#endif

typedef struct __frame_head_t
{
    unsigned char ch;
    unsigned char resolution;
    unsigned char frame_type;    /* 1: i frame 2:p frame 3:audio*/
    unsigned char frame_rate;
    unsigned long frame_size;
    unsigned long sec;
    unsigned long usec;
    int  frame_no;
    char reserve[4];
} frame_head_t;

int sgks_mpi_cap_InitYuvRescale(sgks_mpi_cap_yuv_rescale_s *yuv_rescale);
int sgks_mpi_sample_CapInit(u32 cap_type, u32 rescale_yuv_type, u32 rescale_width,u32 rescale_height);
int sgks_mpi_sample_EnableH264Cap(int width, int height);
int sgks_mpi_sample_EnableMjpegCap(int width, int height,int rescale_width, int rescale_height);
#ifdef  __cplusplus
}
#endif

#endif

